/*********************************************************************************
 *      Copyright:  (C) 2021 litupei<lismilepei@163.com>
 *                  All rights reserved.
 *
 *       Filename:  prj_time.h
 *    Description:  This file is pri_time.h
 *                 
 *        Version:  1.0.0(2021年08月05日)
 *         Author:  litupei <lismilepei@163.com>
 *      ChangeLog:  1, Release initial version on "2021年08月05日 17时23分47秒"
 *                 
 ********************************************************************************/

#include "prj_time.h"

char *time_get(void)
{
	time_t		timep;
	struct tm	*tp;
	static char	time_now[32];

	time(&timep);
	tp = gmtime(&timep);
 
	snprintf(time_now, sizeof(time_now), "%04d/%02d/%02d-%02d/%02d/%02d", (1900+tp->tm_year), (1+tp->tm_mon), tp->tm_mday, (tp->tm_hour+8)%24, tp->tm_min, tp->tm_sec);

	return time_now;
}
